package com.haizi.wildass.service.busi.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.haizi.wildass.entity.busi.bo.AppUser;
import com.haizi.wildass.mapper.busi.AppUserMapper;
import com.haizi.wildass.service.busi.AppUserService;
import org.springframework.stereotype.Service;

@Service
public class AppUserServiceImpl extends ServiceImpl<AppUserMapper, AppUser> implements AppUserService {

    @Override
    public Integer getAppUserBySession(String sessionKey) {
        return baseMapper.getAppUserBySession(sessionKey);
    }

    @Override
    public AppUser getUserInfoById(Integer userId) {
        return baseMapper.selectById(userId);
    }
}
